package ooad.nextgen.gof;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class PropertiesUtil {
    public static String getProperty(String key){
        BufferedReader bufferedReader = null;
        File file = new File("pos.properties");
        Properties properties = new Properties();
        try {
            bufferedReader = new BufferedReader(new FileReader(file));
            properties.load(bufferedReader);
        } catch (FileNotFoundException ex) {
           ex.printStackTrace();
        } catch (IOException ex) {
           ex.printStackTrace();
        }
        return properties.getProperty(key);
    } 

}   
